#ifndef COMPOUNDPRESENTER_H
#define COMPOUNDPRESENTER_H

#include "abstractpresenter.h"
#include <vector>

class CompoundPresenter : public AbstractPresenter {
    typedef std::vector< AbstractPresenter* > PrList;
    PrList Presenters;

public:
    CompoundPresenter();
    ~CompoundPresenter();

    CompoundPresenter& addPresenter(AbstractPresenter* pr);

    void display(const Answer &an);
};

CompoundPresenter& operator << (CompoundPresenter& cp, AbstractPresenter* pr);

#endif // COMPOUNDPRESENTER_H
